function sendSMS(text, mobile){
  $.ajax({
      type: "POST",
      url: "http://yunchixing.com:8080/sms.php",
      dataType: "json",
      data: {
        sms_param: "{\"valid\": "+text+",\"name\":\"Simon\"}",
        rec_num: mobile

      },
      success: function(data) {
        console.log(data);


      }
  });
}


function loopSendSMS(group_users, text){
  for (var i = 0; i < group_users.length; i++) {
    sendSMS(text, group_users[i].number);
  }
}
